package cn.yuanqiao.archive.storeRoom.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.annotation.IdAnnotation;
import cn.yuanqiao.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 库房信息对象 YQSTORE
 * 
 * @author xy
 * @date 2023-06-16
 */
public class Storeroom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id主键 */
    @IdAnnotation
    private Long storeId;


    private String storeIds;

    /** 库房编号 */
    @Excel(name = "库房编号")
    private String storeCode;

    /** 库房名称 */
    @Excel(name = "库房名称")
    private String storeName;

    /** 是否分区 0：不分区 1：分区 */
    @Excel(name = "是否分区 0：不分区 1：分区")
    private Integer isFenqu;

    @Excel(name = "区域")
    private String region;

    /** 位置 */
    @Excel(name = "位置")
    private String storeSpace;

    /** 库房类型 */
    @Excel(name = "库房类型")
    private Integer storeType;

    /** 库房面积 */
    @Excel(name = "库房面积")
    private Integer storeArea;

    /** 创建人 */
/*
    @Excel(name = "创建人")
*/
    private Long creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /** 最后修改人 */
/*
    @Excel(name = "最后修改人")
*/
    private Long lastUpdater;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastupdateTime;

    /** 是否删除 */
/*
    @Excel(name = "是否删除")
*/
    private Integer isDel;
    private List<Long> userId;


    private String userIds;

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setStoreCode(String storeCode) 
    {
        this.storeCode = storeCode;
    }

    public String getStoreCode() 
    {
        return storeCode;
    }
    public void setStoreName(String storeName) 
    {
        this.storeName = storeName;
    }

    public String getStoreName() 
    {
        return storeName;
    }
    public void setIsFenqu(Integer isFenqu) 
    {
        this.isFenqu = isFenqu;
    }

    public Integer getIsFenqu() 
    {
        return isFenqu;
    }
    public void setStoreSpace(String storeSpace) 
    {
        this.storeSpace = storeSpace;
    }

    public String getStoreSpace() 
    {
        return storeSpace;
    }
    public void setStoreType(Integer storeType) 
    {
        this.storeType = storeType;
    }

    public Integer getStoreType() 
    {
        return storeType;
    }
    public void setStoreArea(Integer storeArea) 
    {
        this.storeArea = storeArea;
    }

    public Integer getStoreArea() 
    {
        return storeArea;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setLastUpdater(Long lastUpdater)
    {
        this.lastUpdater = lastUpdater;
    }

    public Long getLastUpdater()
    {
        return lastUpdater;
    }
    public void setLastupdateTime(Date lastupdateTime) 
    {
        this.lastupdateTime = lastupdateTime;
    }

    public Date getLastupdateTime() 
    {
        return lastupdateTime;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<Long> getUserId() {
        return userId;
    }

    public void setUserId(List<Long> userId) {
        this.userId = userId;
    }

    public String getStoreIds() {
        return storeIds;
    }

    public void setStoreIds(String storeIds) {
        this.storeIds = storeIds;
    }

    public String getUserIds() {
        return userIds;
    }

    public void setUserIds(String userIds) {
        this.userIds = userIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("storeId", getStoreId())
            .append("storeCode", getStoreCode())
            .append("storeName", getStoreName())
            .append("isFenqu", getIsFenqu())
            .append("storeSpace", getStoreSpace())
            .append("storeType", getStoreType())
            .append("storeArea", getStoreArea())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("lastUpdater", getLastUpdater())
            .append("lastupdateTime", getLastupdateTime())
            .append("isDel", getIsDel())
            .append("storeIds", getStoreIds())
            .append("region", getRegion())
            .append("userIds", getUserIds())
            .toString();
    }
}
